import com.dog.*
class BootStrap {

    def init = { servletContext ->
		def user = new User(name:"admin",pass:"1")
		user.save()
		def dogHouse = new DogHouse(name:"狗舍",description:"狗的住处",homeFlag:"1")
		dogHouse.save()
		def news = new News(title:"新闻1",content:"新闻")
		news.save()
		def dog = new Dog(name:"公狗",sex:"1",description:"公的",homeFlag:"1")
		dog.save()
		}
    def destroy = {
    }
}
